<template>
  <div>
    <h2>A组件</h2>
  </div>
</template>
<script>
export default {
  name: "AComp",
  data() {
    return {
      msg: "A组件",
    };
  },
  methods: {},
  mounted() {
    // 获取父组件实例对象
    // console.log(this.$parent);
    // this.$parent.msg = "11111";
  },
};
</script>

<style lang="less" scoped></style>
